package persistence;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Set;


/**
 * The persistent class for the Employees database table.
 * 
 */
@Entity
@Table(name="Employees")
public class Employee implements Serializable {
	private static final long serialVersionUID = 1L;
	private int idEmployees;
	private String type;
	private Set<Firm_has_Employee> firmHasEmployees;

    public Employee() {
    }


	@Id
	public int getIdEmployees() {
		return this.idEmployees;
	}

	public void setIdEmployees(int idEmployees) {
		this.idEmployees = idEmployees;
	}


	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}


	//bi-directional many-to-one association to Firm_has_Employee
	@OneToMany(mappedBy="employee")
	public Set<Firm_has_Employee> getFirmHasEmployees() {
		return this.firmHasEmployees;
	}

	public void setFirmHasEmployees(Set<Firm_has_Employee> firmHasEmployees) {
		this.firmHasEmployees = firmHasEmployees;
	}
	
}